# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class CreateOrderRequestObject(object):

    def __init__(self, appCode=None, az=None, chargeDuration=None, chargeMode=None, chargeUnit=None, customInfo=None, extraInfo=None, formula=None, itemName=None, itemType=None, orderType=None, payType=None, pin=None, promotionInfo=None, quantity=None, region=None, resourceId=None, returnUrl=None, salesAttribute=None, serviceCode=None, serviceProviderName=None, serviceProviderPin=None, siteType=None, sourceId=None, taskId=None):
        """
        :param appCode: (Optional) 业务线
        :param az: (Optional) 可用区
        :param chargeDuration: (Optional) 计费时长
        :param chargeMode: (Optional) 计费类型(CONFIG-按配置,FLOW-按用量MONTHLY-包年包月,ONCE-按次付费)
        :param chargeUnit: (Optional) 计费时长单位（HOUR-小时,DAY-天,MONTH-月,YEAR-年）
        :param customInfo: (Optional) 自定义参数
        :param extraInfo: (Optional) 销售属性
        :param formula: (Optional) 配置计费项
        :param itemName: (Optional) 资源名称
        :param itemType: (Optional) 商品类型(COMMON_ITEM-普通商品,ACTIVITY_ITEM-活动商品)
        :param orderType: (Optional) 购买订单类型(NEW-新购,RENEW-续费，RESIZE_FORMULA-配置变更)
        :param payType: (Optional) 付费类型(PRE_PAID-预付费,POST_PAID-后付费)
        :param pin: (Optional) 用户pin
        :param promotionInfo: (Optional) 促销明细
        :param quantity: (Optional) 数量
        :param region: (Optional) 资源地域
        :param resourceId: (Optional) 资源id
        :param returnUrl: (Optional) 支付成功后的回调地址(例如：//inf.jcloud.com)，如果需要自己提供回调地址则设置该字段，否则会回调到inf.jdcloud.com
        :param salesAttribute: (Optional) 销售属性
        :param serviceCode: (Optional) 产品线
        :param serviceProviderName: (Optional) 服务商名称
        :param serviceProviderPin: (Optional) 服务商pin
        :param siteType: (Optional) 站点名称（MAIN_SITE-主站，INTERNATIONAL_SITE-国际站，SUQIAN_DEDICATED_CLOUD-宿迁专有云）
        :param sourceId: (Optional) 下单唯一标识
        :param taskId: (Optional) 打包标识，打包在一起的产品用相同的taskId
        """

        self.appCode = appCode
        self.az = az
        self.chargeDuration = chargeDuration
        self.chargeMode = chargeMode
        self.chargeUnit = chargeUnit
        self.customInfo = customInfo
        self.extraInfo = extraInfo
        self.formula = formula
        self.itemName = itemName
        self.itemType = itemType
        self.orderType = orderType
        self.payType = payType
        self.pin = pin
        self.promotionInfo = promotionInfo
        self.quantity = quantity
        self.region = region
        self.resourceId = resourceId
        self.returnUrl = returnUrl
        self.salesAttribute = salesAttribute
        self.serviceCode = serviceCode
        self.serviceProviderName = serviceProviderName
        self.serviceProviderPin = serviceProviderPin
        self.siteType = siteType
        self.sourceId = sourceId
        self.taskId = taskId
